/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: Result
 * Author:   xi
 * Date:     2019/8/17 12:49
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.supconit.entity;

import java.io.Serializable;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author xi
 * @create 2019/8/17
 * @since 1.0.0
 */
public class Result implements Serializable {
private static final long serialVersionUID = 1L;
private boolean success = false;
private String msg = "";
private Integer code = Integer.valueOf(0);
private Object obj = null;

public Result() {
        }

public boolean isSuccess() {
        return this.success;
        }

public String getMsg() {
        return this.msg;
        }

public Integer getCode() {
        return this.code;
        }

public Object getObj() {
        return this.obj;
        }

public Result setSuccess(boolean success) {
        this.success = success;
        return this;
        }

public Result setMsg(String msg) {
        this.msg = msg;
        return this;
        }

public Result setCode(Integer code) {
        this.code = code;
        return this;
        }

public Result setObj(Object obj) {
        this.obj = obj;
        return this;
        }

public String toString() {
        return "Result(success=" + this.isSuccess() + ", msg=" + this.getMsg() + ", code=" + this.getCode() + ", obj=" + this.getObj() + ")";
        }

public boolean equals(Object o) {
        if(o == this) {
        return true;
        } else if(!(o instanceof Result)) {
        return false;
        } else {
        Result other = (Result)o;
        if(!other.canEqual(this)) {
        return false;
        } else if(this.isSuccess() != other.isSuccess()) {
        return false;
        } else {
        label49: {
        String this$msg = this.getMsg();
        String other$msg = other.getMsg();
        if(this$msg == null) {
        if(other$msg == null) {
        break label49;
        }
        } else if(this$msg.equals(other$msg)) {
        break label49;
        }

        return false;
        }

        Integer this$code = this.getCode();
        Integer other$code = other.getCode();
        if(this$code == null) {
        if(other$code != null) {
        return false;
        }
        } else if(!this$code.equals(other$code)) {
        return false;
        }

        Object this$obj = this.getObj();
        Object other$obj = other.getObj();
        if(this$obj == null) {
        if(other$obj != null) {
        return false;
        }
        } else if(!this$obj.equals(other$obj)) {
        return false;
        }

        return true;
        }
        }
        }

protected boolean canEqual(Object other) {
        return other instanceof Result;
        }

public int hashCode() {
        boolean PRIME = true;
        byte result = 1;
        int result1 = result * 59 + (this.isSuccess()?79:97);
        String $msg = this.getMsg();
        result1 = result1 * 59 + ($msg == null?43:$msg.hashCode());
        Integer $code = this.getCode();
        result1 = result1 * 59 + ($code == null?43:$code.hashCode());
        Object $obj = this.getObj();
        result1 = result1 * 59 + ($obj == null?43:$obj.hashCode());
        return result1;
        }
        }
